package com.leoman.dao;

import com.leoman.entity.WxUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by wangbin on 2015/7/8.
 */
public interface WxUserDao extends JpaRepository<WxUser, Integer> {

    @Query("select a from WxUser a where a.openId = ?1")
    WxUser findByOpenId(String openId);
}
